package com.vivianwei.sqlfix;

import java.util.List;
import java.util.Map;

/**
 * @Description
 * @Author wangwei
 * @Date2021/3/10 4:18 下午
 * @Version V1.0
 **/
public class LengthProcess extends SqlProcess {

    public LengthProcess(List<String> tables, String excelPath, String genPath, String sheetName) {
        super(tables, excelPath, genPath, sheetName);
    }

    @Override
    protected String sql(Map line) {
        return String.format("alter table %s modify column %s varchar(1000);\n",line.get("表名"),line.get("字段"));
    }
}
